function getLesson(id) {     
    $.post(
            "/ajax/getlesson", 
            {                
                id:id
            } ,
            gotLesson,
            "json"
        );
}
function gotLesson(data){
    $('#lesson_form').show();
    $('#lesson_id').html(data.id);
    $('#lesson_name').html(data.name);
    $('#lesson_teacher_id').html(data.teacher_name);
    $('#lesson_status').html(data.status);
    $('#lesson_start_date').html(data.start_date+' '+data.start_time);
    $('#lesson_end_time').html(data.end_time);
    $('#lesson_type').html(data.type);
    $('#lesson_studygroup_id').html(data.group_name);
    $('#lesson_comments').html(data.comments);
}